﻿using System;
using System.ComponentModel.DataAnnotations;

namespace WebTest.Core.Entities.Interfaces
{
    public interface INoKeyEntity { }
    public interface IEntity : INoKeyEntity
    {
        int Id { get; set; }
    }
    public interface IEntity<T> where T : class
    {
        T Id { get; set; }
    }

    public interface IDateTimeEntity
    {
        DateTime CreateDateTime { get; set; }
        DateTime ModifyDateTime { get; set; }
    }

    public interface IRowVersion
    {
        [Timestamp]
        byte[] RowVersion { get; set; }
    }
}
